Date Calculations is a scripting addition that adds some useful date and time functions to AppleScript. I’ve also enclosed a sample applet to demonstrate their use. I first wrote this addition for AppleScript 1.0; AppleScript 1.1 has new date/time capabilities which make one or two, but not all, of the functions obsolete.
How to use: you must have AppleScript installed. The addition itself should work with 1.0, but the sample applet was compiled with 1.1, and is unusable under 1.0. Drag the “Date Calculations” file into your Scripting Additions folder. That’s it. Now double-click the “NZ Daylight Saving” applet, and it should display a message indicating the current state of Daylight Saving time in New Zealand. You can open this applet with the Script Editor and look at the script to see how it works.